package com.ss.progress.service;

import java.util.List;

import com.ss.progress.pojo.CalendarDetailInfo;
import com.ss.progress.pojo.CalendarInfo;

/**
 * 教学日历服务接口
 * @author Administrator
 *
 */
public interface CalendarService {
	/**
	 * 查询工作日历
	 * @param info
	 * @return
	 * @throws Exception
	 */
	List<CalendarInfo> queryCalendar(CalendarInfo info) throws Exception;
	
	/**
	 * 新增日历
	 * @param info
	 * @throws Exception
	 */
	void addCalendar(CalendarInfo info) throws Exception;
	
	/**
	 * 修改日历
	 * @param info
	 * @return
	 * @throws Exception
	 */
	boolean updateCalendar(CalendarInfo info) throws Exception;
	
	/**
	 * 查询工作日历明细
	 * @param info
	 * @return
	 * @throws Exception
	 */
	List<CalendarDetailInfo> queryCalendarDetail(CalendarDetailInfo info) throws Exception;
	
	/**
	 * 查询工作日历明细by id
	 * @param info
	 * @return
	 * @throws Exception
	 */
	CalendarDetailInfo getCalendarDetailById(String id) throws Exception;
	
	/**
	 * 新增日历明细
	 * @param info
	 * @throws Exception
	 */
	void addCalendarDetail(CalendarDetailInfo info) throws Exception;
	
	/**
	 * 修改日历明细
	 * @param info
	 * @return
	 * @throws Exception
	 */
	boolean updateCalendarDetail(CalendarDetailInfo info) throws Exception;
}
